var fs = require('fs');
fs.writeFile("input.txt", "Hey there!", function(err) {
    if(err) {
        return console.error(err);
    }
    console.log("The file was saved!");
});